CC = gcc
CFLAGS = -Wall

SRC = src
OBJ = obj
BIN = bin

PROGRAM = ICMCTown

all: ICMCTown.o compile

run:
	./$(BIN)/$(PROGRAM)

time:
	/usr/bin/time -f "%e" ./$(BIN)/$(PROGRAM)

compile: 
	@$(CC) $(OBJ)/*.o -o $(BIN)/$(PROGRAM)
	@echo complete compilation

ICMCTown.o:
	@$(CC) -c $(SRC)/$(PROGRAM).c -o $(OBJ)/$(PROGRAM).o
	@echo $(PROGRAM).o compiled

clear:
	rm $(BIN)/* $(OBJ)/*.o
